<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnCurrentBalanceToElBalanceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
	    Schema::table('el_balance', function (Blueprint $table){
			$table->integer('current_balance')->default(0)->comment('当前余额')->after('value');
	    });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
	    Schema::table('el_balance', function (Blueprint $table){
		    $table->dropColumn('current_balance');
	    });
    }
}
